3.13.21 \(\int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)} (a+a \sec (c+d x))} \, dx\) [1221]
Optimal. Leaf size=122 \[ -\frac {(A-B+3 C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a d}+\frac {(A+B-C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a d}+\frac {(A-B+3 C) \sin (c+d x)}{a d \sqrt {\cos (c+d x)}}-\frac {(A-B+C) \sin (c+d x)}{d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))} \]
[Out]
-(A-B+3*C)*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticE(sin(1/2*d*x+1/2*c),2^(1/2))/a/d+(A+B-C)*(
cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticF(sin(1/2*d*x+1/2*c),2^(1/2))/a/d+(A-B+3*C)*sin(d*x+c)/
a/d/cos(d*x+c)^(1/2)-(A-B+C)*sin(d*x+c)/d/(a+a*cos(d*x+c))/cos(d*x+c)^(1/2)
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 122, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.140, Rules used = {4197, 3120,
2827, 2716, 2719, 2720} \begin {gather*} \frac {(A+B-C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a d}-\frac {(A-B+3 C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a d}+\frac {(A-B+3 C) \sin (c+d x)}{a d \sqrt {\cos (c+d x)}}-\frac {(A-B+C) \sin (c+d x)}{d \sqrt {\cos (c+d x)} (a \cos (c+d x)+a)} \end {gather*}
Antiderivative was successfully verified.
[In]
Int[(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)/(Sqrt[Cos[c + d*x]]*(a + a*Sec[c + d*x])),x]
[Out]
-(((A - B + 3*C)*EllipticE[(c + d*x)/2, 2])/(a*d)) + ((A + B - C)*EllipticF[(c + d*x)/2, 2])/(a*d) + ((A - B +
3*C)*Sin[c + d*x])/(a*d*Sqrt[Cos[c + d*x]]) - ((A - B + C)*Sin[c + d*x])/(d*Sqrt[Cos[c + d*x]]*(a + a*Cos[c +
d*x]))
Rule 2716
Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[Cos[c + d*x]*((b*Sin[c + d*x])^(n + 1)/(b*d*(n + 1
))), x] + Dist[(n + 2)/(b^2*(n + 1)), Int[(b*Sin[c + d*x])^(n + 2), x], x] /; FreeQ[{b, c, d}, x] && LtQ[n, -1
] && IntegerQ[2*n]
Rule 2719
Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticE[(1/2)*(c - Pi/2 + d*x), 2], x] /; FreeQ[{
c, d}, x]
Rule 2720
Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticF[(1/2)*(c - Pi/2 + d*x), 2], x] /; FreeQ
[{c, d}, x]
Rule 2827
Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[c, Int[(b*S
in[e + f*x])^m, x], x] + Dist[d/b, Int[(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]
Rule 3120
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.)*((A_.) + (B_.)*s
in[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(a*A - b*B + a*C)*Cos[e + f*x]*(a
+ b*Sin[e + f*x])^m*((c + d*Sin[e + f*x])^(n + 1)/(f*(b*c - a*d)*(2*m + 1))), x] + Dist[1/(b*(b*c - a*d)*(2*m
+ 1)), Int[(a + b*Sin[e + f*x])^(m + 1)*(c + d*Sin[e + f*x])^n*Simp[A*(a*c*(m + 1) - b*d*(2*m + n + 2)) + B*(
b*c*m + a*d*(n + 1)) - C*(a*c*m + b*d*(n + 1)) + (d*(a*A - b*B)*(m + n + 2) + C*(b*c*(2*m + 1) - a*d*(m - n -
1)))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C, n}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^
2, 0] && NeQ[c^2 - d^2, 0] && LtQ[m, -2^(-1)]
Rule 4197
Int[(cos[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*((a_) + (b_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sec[(e_.)
+ (f_.)*(x_)] + (C_.)*sec[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Dist[d^(m + 2), Int[(b + a*Cos[e + f*x])^m*(d*
Cos[e + f*x])^(n - m - 2)*(C + B*Cos[e + f*x] + A*Cos[e + f*x]^2), x], x] /; FreeQ[{a, b, d, e, f, A, B, C, n}
, x] && !IntegerQ[n] && IntegerQ[m]
Rubi steps
\begin {align*} \int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)} (a+a \sec (c+d x))} \, dx &=\int \frac {C+B \cos (c+d x)+A \cos ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x) (a+a \cos (c+d x))} \, dx\\ &=-\frac {(A-B+C) \sin (c+d x)}{d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))}+\frac {\int \frac {\frac {1}{2} a (A-B+3 C)+\frac {1}{2} a (A+B-C) \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx}{a^2}\\ &=-\frac {(A-B+C) \sin (c+d x)}{d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))}+\frac {(A+B-C) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{2 a}+\frac {(A-B+3 C) \int \frac {1}{\cos ^{\frac {3}{2}}(c+d x)} \, dx}{2 a}\\ &=\frac {(A+B-C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a d}+\frac {(A-B+3 C) \sin (c+d x)}{a d \sqrt {\cos (c+d x)}}-\frac {(A-B+C) \sin (c+d x)}{d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))}-\frac {(A-B+3 C) \int \sqrt {\cos (c+d x)} \, dx}{2 a}\\ &=-\frac {(A-B+3 C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a d}+\frac {(A+B-C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{a d}+\frac {(A-B+3 C) \sin (c+d x)}{a d \sqrt {\cos (c+d x)}}-\frac {(A-B+C) \sin (c+d x)}{d \sqrt {\cos (c+d x)} (a+a \cos (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 6.53, size = 2009, normalized size = 16.47 \begin {gather*} \text {Result too large to show} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
Integrate[(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)/(Sqrt[Cos[c + d*x]]*(a + a*Sec[c + d*x])),x]
[Out]
((-1/2*I)*A*Cos[c/2 + (d*x)/2]^2*Cos[c + d*x]*Csc[c/2]*Sec[c/2]*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)*((2*E^
((2*I)*d*x)*Hypergeometric2F1[1/2, 3/4, 7/4, -(E^((2*I)*d*x)*(Cos[c] + I*Sin[c])^2)]*Sqrt[(2*(1 + E^((2*I)*d*x
))*Cos[c] + (2*I)*(-1 + E^((2*I)*d*x))*Sin[c])/E^(I*d*x)]*Sqrt[1 + E^((2*I)*d*x)*Cos[2*c] + I*E^((2*I)*d*x)*Si
n[2*c]])/((3*I)*d*(1 + E^((2*I)*d*x))*Cos[c] - 3*d*(-1 + E^((2*I)*d*x))*Sin[c]) - (2*Hypergeometric2F1[-1/4, 1
/2, 3/4, -(E^((2*I)*d*x)*(Cos[c] + I*Sin[c])^2)]*Sqrt[(2*(1 + E^((2*I)*d*x))*Cos[c] + (2*I)*(-1 + E^((2*I)*d*x
))*Sin[c])/E^(I*d*x)]*Sqrt[1 + E^((2*I)*d*x)*Cos[2*c] + I*E^((2*I)*d*x)*Sin[2*c]])/((-I)*d*(1 + E^((2*I)*d*x))
*Cos[c] + d*(-1 + E^((2*I)*d*x))*Sin[c])))/((A + 2*C + 2*B*Cos[c + d*x] + A*Cos[2*c + 2*d*x])*(a + a*Sec[c + d
*x])) + ((I/2)*B*Cos[c/2 + (d*x)/2]^2*Cos[c + d*x]*Csc[c/2]*Sec[c/2]*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)*(
(2*E^((2*I)*d*x)*Hypergeometric2F1[1/2, 3/4, 7/4, -(E^((2*I)*d*x)*(Cos[c] + I*Sin[c])^2)]*Sqrt[(2*(1 + E^((2*I
)*d*x))*Cos[c] + (2*I)*(-1 + E^((2*I)*d*x))*Sin[c])/E^(I*d*x)]*Sqrt[1 + E^((2*I)*d*x)*Cos[2*c] + I*E^((2*I)*d*
x)*Sin[2*c]])/((3*I)*d*(1 + E^((2*I)*d*x))*Cos[c] - 3*d*(-1 + E^((2*I)*d*x))*Sin[c]) - (2*Hypergeometric2F1[-1
/4, 1/2, 3/4, -(E^((2*I)*d*x)*(Cos[c] + I*Sin[c])^2)]*Sqrt[(2*(1 + E^((2*I)*d*x))*Cos[c] + (2*I)*(-1 + E^((2*I
)*d*x))*Sin[c])/E^(I*d*x)]*Sqrt[1 + E^((2*I)*d*x)*Cos[2*c] + I*E^((2*I)*d*x)*Sin[2*c]])/((-I)*d*(1 + E^((2*I)*
d*x))*Cos[c] + d*(-1 + E^((2*I)*d*x))*Sin[c])))/((A + 2*C + 2*B*Cos[c + d*x] + A*Cos[2*c + 2*d*x])*(a + a*Sec[
c + d*x])) - (((3*I)/2)*C*Cos[c/2 + (d*x)/2]^2*Cos[c + d*x]*Csc[c/2]*Sec[c/2]*(A + B*Sec[c + d*x] + C*Sec[c +
d*x]^2)*((2*E^((2*I)*d*x)*Hypergeometric2F1[1/2, 3/4, 7/4, -(E^((2*I)*d*x)*(Cos[c] + I*Sin[c])^2)]*Sqrt[(2*(1
+ E^((2*I)*d*x))*Cos[c] + (2*I)*(-1 + E^((2*I)*d*x))*Sin[c])/E^(I*d*x)]*Sqrt[1 + E^((2*I)*d*x)*Cos[2*c] + I*E^
((2*I)*d*x)*Sin[2*c]])/((3*I)*d*(1 + E^((2*I)*d*x))*Cos[c] - 3*d*(-1 + E^((2*I)*d*x))*Sin[c]) - (2*Hypergeomet
ric2F1[-1/4, 1/2, 3/4, -(E^((2*I)*d*x)*(Cos[c] + I*Sin[c])^2)]*Sqrt[(2*(1 + E^((2*I)*d*x))*Cos[c] + (2*I)*(-1
+ E^((2*I)*d*x))*Sin[c])/E^(I*d*x)]*Sqrt[1 + E^((2*I)*d*x)*Cos[2*c] + I*E^((2*I)*d*x)*Sin[2*c]])/((-I)*d*(1 +
E^((2*I)*d*x))*Cos[c] + d*(-1 + E^((2*I)*d*x))*Sin[c])))/((A + 2*C + 2*B*Cos[c + d*x] + A*Cos[2*c + 2*d*x])*(a
+ a*Sec[c + d*x])) + (Cos[c/2 + (d*x)/2]^2*Cos[c + d*x]^(3/2)*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)*((2*(2*
C + A*Cos[c] - B*Cos[c] + C*Cos[c])*Csc[c/2]*Sec[c/2]*Sec[c])/d + (4*Sec[c/2]*Sec[c/2 + (d*x)/2]*(A*Sin[(d*x)/
2] - B*Sin[(d*x)/2] + C*Sin[(d*x)/2]))/d + (8*C*Sec[c]*Sec[c + d*x]*Sin[d*x])/d))/((A + 2*C + 2*B*Cos[c + d*x]
+ A*Cos[2*c + 2*d*x])*(a + a*Sec[c + d*x])) - (2*A*Cos[c/2 + (d*x)/2]^2*Cos[c + d*x]*Csc[c/2]*HypergeometricP
FQ[{1/4, 1/2}, {5/4}, Sin[d*x - ArcTan[Cot[c]]]^2]*Sec[c/2]*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)*Sec[d*x -
ArcTan[Cot[c]]]*Sqrt[1 - Sin[d*x - ArcTan[Cot[c]]]]*Sqrt[-(Sqrt[1 + Cot[c]^2]*Sin[c]*Sin[d*x - ArcTan[Cot[c]]]
)]*Sqrt[1 + Sin[d*x - ArcTan[Cot[c]]]])/(d*(A + 2*C + 2*B*Cos[c + d*x] + A*Cos[2*c + 2*d*x])*Sqrt[1 + Cot[c]^2
]*(a + a*Sec[c + d*x])) - (2*B*Cos[c/2 + (d*x)/2]^2*Cos[c + d*x]*Csc[c/2]*HypergeometricPFQ[{1/4, 1/2}, {5/4},
Sin[d*x - ArcTan[Cot[c]]]^2]*Sec[c/2]*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)*Sec[d*x - ArcTan[Cot[c]]]*Sqrt[
1 - Sin[d*x - ArcTan[Cot[c]]]]*Sqrt[-(Sqrt[1 + Cot[c]^2]*Sin[c]*Sin[d*x - ArcTan[Cot[c]]])]*Sqrt[1 + Sin[d*x -
ArcTan[Cot[c]]]])/(d*(A + 2*C + 2*B*Cos[c + d*x] + A*Cos[2*c + 2*d*x])*Sqrt[1 + Cot[c]^2]*(a + a*Sec[c + d*x]
)) + (2*C*Cos[c/2 + (d*x)/2]^2*Cos[c + d*x]*Csc[c/2]*HypergeometricPFQ[{1/4, 1/2}, {5/4}, Sin[d*x - ArcTan[Cot
[c]]]^2]*Sec[c/2]*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)*Sec[d*x - ArcTan[Cot[c]]]*Sqrt[1 - Sin[d*x - ArcTan[
Cot[c]]]]*Sqrt[-(Sqrt[1 + Cot[c]^2]*Sin[c]*Sin[d*x - ArcTan[Cot[c]]])]*Sqrt[1 + Sin[d*x - ArcTan[Cot[c]]]])/(d
*(A + 2*C + 2*B*Cos[c + d*x] + A*Cos[2*c + 2*d*x])*Sqrt[1 + Cot[c]^2]*(a + a*Sec[c + d*x]))
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(352\) vs.
\(2(170)=340\).
time = 0.18, size = 353, normalized size = 2.89
| | |
method |
result |
size |
| | |
default |
\(-\frac {\sqrt {-\left (-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (-\cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \left (A \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+A \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+B \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-B \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-C \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+3 C \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right )-2 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \left (A -B +3 C \right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \left (A -B +5 C \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}{a \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} \left (2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d}\) |
\(353\) |
| | |
|
|
|
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((A+B*sec(d*x+c)+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2)/(a+a*sec(d*x+c)),x,method=_RETURNVERBOSE)
[Out]
-1/a*(-(-2*cos(1/2*d*x+1/2*c)^2+1)*sin(1/2*d*x+1/2*c)^2)^(1/2)*(-cos(1/2*d*x+1/2*c)*(-2*sin(1/2*d*x+1/2*c)^4+s
in(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(A*EllipticF(cos(1/2*
d*x+1/2*c),2^(1/2))+A*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))+B*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))-B*Elliptic
E(cos(1/2*d*x+1/2*c),2^(1/2))-C*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))+3*C*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2)
))-2*(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)*(A-B+3*C)*sin(1/2*d*x+1/2*c)^4+(-2*sin(1/2*d*x+1/2*c
)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)*(A-B+5*C)*sin(1/2*d*x+1/2*c)^2)/sin(1/2*d*x+1/2*c)^3/(2*sin(1/2*d*x+1/2*c)^2-1
)/cos(1/2*d*x+1/2*c)/(2*cos(1/2*d*x+1/2*c)^2-1)^(1/2)/d
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((A+B*sec(d*x+c)+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2)/(a+a*sec(d*x+c)),x, algorithm="maxima")
[Out]
integrate((C*sec(d*x + c)^2 + B*sec(d*x + c) + A)/((a*sec(d*x + c) + a)*sqrt(cos(d*x + c))), x)
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.69, size = 315, normalized size = 2.58 \begin {gather*} \frac {2 \, {\left ({\left (A - B + 3 \, C\right )} \cos \left (d x + c\right ) + 2 \, C\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) + {\left (\sqrt {2} {\left (-i \, A - i \, B + i \, C\right )} \cos \left (d x + c\right )^{2} + \sqrt {2} {\left (-i \, A - i \, B + i \, C\right )} \cos \left (d x + c\right )\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + {\left (\sqrt {2} {\left (i \, A + i \, B - i \, C\right )} \cos \left (d x + c\right )^{2} + \sqrt {2} {\left (i \, A + i \, B - i \, C\right )} \cos \left (d x + c\right )\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + {\left (\sqrt {2} {\left (-i \, A + i \, B - 3 i \, C\right )} \cos \left (d x + c\right )^{2} + \sqrt {2} {\left (-i \, A + i \, B - 3 i \, C\right )} \cos \left (d x + c\right )\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) + {\left (\sqrt {2} {\left (i \, A - i \, B + 3 i \, C\right )} \cos \left (d x + c\right )^{2} + \sqrt {2} {\left (i \, A - i \, B + 3 i \, C\right )} \cos \left (d x + c\right )\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right )}{2 \, {\left (a d \cos \left (d x + c\right )^{2} + a d \cos \left (d x + c\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((A+B*sec(d*x+c)+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2)/(a+a*sec(d*x+c)),x, algorithm="fricas")
[Out]
1/2*(2*((A - B + 3*C)*cos(d*x + c) + 2*C)*sqrt(cos(d*x + c))*sin(d*x + c) + (sqrt(2)*(-I*A - I*B + I*C)*cos(d*
x + c)^2 + sqrt(2)*(-I*A - I*B + I*C)*cos(d*x + c))*weierstrassPInverse(-4, 0, cos(d*x + c) + I*sin(d*x + c))
+ (sqrt(2)*(I*A + I*B - I*C)*cos(d*x + c)^2 + sqrt(2)*(I*A + I*B - I*C)*cos(d*x + c))*weierstrassPInverse(-4,
0, cos(d*x + c) - I*sin(d*x + c)) + (sqrt(2)*(-I*A + I*B - 3*I*C)*cos(d*x + c)^2 + sqrt(2)*(-I*A + I*B - 3*I*C
)*cos(d*x + c))*weierstrassZeta(-4, 0, weierstrassPInverse(-4, 0, cos(d*x + c) + I*sin(d*x + c))) + (sqrt(2)*(
I*A - I*B + 3*I*C)*cos(d*x + c)^2 + sqrt(2)*(I*A - I*B + 3*I*C)*cos(d*x + c))*weierstrassZeta(-4, 0, weierstra
ssPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c))))/(a*d*cos(d*x + c)^2 + a*d*cos(d*x + c))
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {A}{\sqrt {\cos {\left (c + d x \right )}} \sec {\left (c + d x \right )} + \sqrt {\cos {\left (c + d x \right )}}}\, dx + \int \frac {B \sec {\left (c + d x \right )}}{\sqrt {\cos {\left (c + d x \right )}} \sec {\left (c + d x \right )} + \sqrt {\cos {\left (c + d x \right )}}}\, dx + \int \frac {C \sec ^{2}{\left (c + d x \right )}}{\sqrt {\cos {\left (c + d x \right )}} \sec {\left (c + d x \right )} + \sqrt {\cos {\left (c + d x \right )}}}\, dx}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((A+B*sec(d*x+c)+C*sec(d*x+c)**2)/cos(d*x+c)**(1/2)/(a+a*sec(d*x+c)),x)
[Out]
(Integral(A/(sqrt(cos(c + d*x))*sec(c + d*x) + sqrt(cos(c + d*x))), x) + Integral(B*sec(c + d*x)/(sqrt(cos(c +
d*x))*sec(c + d*x) + sqrt(cos(c + d*x))), x) + Integral(C*sec(c + d*x)**2/(sqrt(cos(c + d*x))*sec(c + d*x) +
sqrt(cos(c + d*x))), x))/a
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((A+B*sec(d*x+c)+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2)/(a+a*sec(d*x+c)),x, algorithm="giac")
[Out]
integrate((C*sec(d*x + c)^2 + B*sec(d*x + c) + A)/((a*sec(d*x + c) + a)*sqrt(cos(d*x + c))), x)
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{\sqrt {\cos \left (c+d\,x\right )}\,\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((A + B/cos(c + d*x) + C/cos(c + d*x)^2)/(cos(c + d*x)^(1/2)*(a + a/cos(c + d*x))),x)
[Out]
int((A + B/cos(c + d*x) + C/cos(c + d*x)^2)/(cos(c + d*x)^(1/2)*(a + a/cos(c + d*x))), x)
________________________________________________________________________________________